home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Live Clock.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
2KB
|
85 lines
[SUBJECT]
Description=Show real time clock
ImageIndex=-1
Folder=Tools
[BODY_TAG]
;onLoad="show5()"
[BODY_TEXT]
;<span id="liveclock" style="position:absolute;left:`left_position`;top:`top_position`;">
;</span>
;
;<script language="JavaScript">
;<!--
;
;/*
;Upper Left Corner Live Clock Script-
;⌐ Dynamic Drive (www.dynamicdrive.com)
;For full source code, installation instructions,
;100's more DHTML scripts, and Terms Of
;Use, visit dynamicdrive.com
;*/
;
;function show5(){
;if (!document.layers&&!document.all)
;return;
;var Digital=new Date();
;var hours=Digital.getHours();
;var minutes=Digital.getMinutes();
;var seconds=Digital.getSeconds();
;var dn="AM";
;if (hours>12){
;dn="PM";
;hours=hours-12;
;}
;if (hours==0)
;hours=12;
;if (minutes<=9)
;minutes="0"+minutes;
;if (seconds<=9)
;seconds="0"+seconds;
;//change font size here to your desire
;myclock="<font size='`clock_font_size`' face='`font_face`' ><b><font size='`caption_font_size`'>Current Time:</font></br>"+hours+":"+minutes+":"
;+seconds+" "+dn+"</b></font>";
;if (document.layers){
;document.layers.liveclock.document.write(myclock);
;document.layers.liveclock.document.close();
;}
;else if (document.all)
;liveclock.innerHTML=myclock;
;setTimeout("show5()",`interval`);
;}
;
;//-->
;</script>
[`interval`]
Kind=N
Value=1000
[`font_face`]
Kind=S
Value=Arial
[`clock_font_size`]
Kind=N
Value=5
[`caption_font_size`]
Kind=N
Value=1
[`left_position`]
Kind=N
Value=0
[`top_position`]
Kind=N
Value=0